-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Archiver and add BaseHead #139
Conversation
I've updated only the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM, we just need to ensure that the end archives can be seamlessly then used with parsers in dai-nodes
Co-authored-by: KlemenSkrlj <[email protected]>
…uxonis-train into feat/archiver-refactor
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #139 +/- ##
==========================================
- Coverage 96.31% 95.14% -1.18%
==========================================
Files 147 164 +17
Lines 6304 7144 +840
==========================================
+ Hits 6072 6797 +725
- Misses 232 347 +115 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left some small comments
This PR introduces the
BaseHead
class to standardize head definitions in the NN architecture. The new class enforces required fields likeparser
and provides a structured way to define head-specific metadata viaget_custom_head_config
.Additionally, the archiver has been refactored to utilize the
BaseHead
class for generating configurations, reducing redundancy and improving scalability when adding new architectures. This ensures auxiliary heads and other metadata are handled consistently.Key Changes:
BaseHead
class with aparser
field._get_base_head_config
andget_custom_head_config
for better separation of base and custom logic.BaseHead
instances instead of relying solely on the config file.